<script>
import {mimin} from "@/mixin";

export default {
  name: "MyStudent",
  data() {
    return {
      name: "张三",
      age: 18
    }
  },
  mixins:[mimin]
}
</script>

<template>
  <div>
    <h2 @click="show">学生姓名:{{ name }}</h2>
    <h2> 学生年龄:{{ age }}</h2>
  </div>
</template>